package com.csx.governance.traffic.adm.model.vo;

import com.csx.governance.traffic.adm.model.pojo.SwimLaneSubDefinition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 泳道定义业务实体
 * @author cuisongxu
 * @date 2023/4/23 16:27
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SwimLaneDefinitionVO {

    private String swimLaneId;

    private Boolean isBaseSwimLane;

    private String baseSwimLaneId;

    private List<SwimLaneSubDefinition> swimLaneSubDefinitions;

    public String getBaseSwimLaneId() {
        if(baseSwimLaneId == null) {
            return "";
        }
        return baseSwimLaneId;
    }

    public Boolean getIsBaseSwimLane() {
        if(isBaseSwimLane == null) {
            return false;
        }
        return isBaseSwimLane;
    }
}
